package fr.umlv.j2ee.patterns.sessionfacade;

import javax.naming.InitialContext;

import fr.umlv.j2ee.patterns.transfertobject.Account;

public class Client {

	
	public static void main(String[] args) throws Exception {
		
		
		InitialContext ctx = new InitialContext();
		
		FacadBusiness facad = (FacadBusiness) ctx.lookup("FacadBean/remote");
		
		facad.addAccount(new Account("plop","plup","plop@plop.com"));
		System.out.println(facad.getAccount("plop@plop.com"));
		facad.addCommand();
	}
}
